---
category: DOM
created: '2020-04-19'
title: Reload the current page
updated: '2021-10-13'
---

**JavaScript version**

```js reload.js
const reload = () => location.reload();

// Or
const reload = () => (location.href = location.href);
```

**TypeScript version**

```ts reload.ts
const reload = (): void => location.reload();

// Or
const reload = (): string => (location.href = location.href);
```
